import web
from utils.handle import Handle,EdgeGpt,ContinuousApiTest,ContinuousEdgeGpt
#接口配置
urls = (
    '/index', 'Handle',
    '/edgeGpt', 'EdgeGpt',
    '/continuousApiTest', 'ContinuousApiTest',
    '/continuousEdgeGpt', 'ContinuousEdgeGpt',
)
class MyApplication(web.application):
    def run(self, port=8080, *middleware):
        func = self.wsgifunc(*middleware)
        return web.httpserver.runsimple(func, ('0.0.0.0', port))

if __name__ == '__main__':
    app = MyApplication(urls, globals())
    app.run(port=9999)